package drawing;

public abstract class RenderEngine {
	private CgPanel panel;
	public void notify(Event e)
	{
		int[][] screen = render();
			for(int i =0;i<screen.length;i++)
				for (int j = 0; j < screen[0].length; j++) {
					panel.drawPixel(i, j, screen[i][j]);
				}
		panel.repaint();
	}
	public abstract int[][]render();
}
